/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package dinner.web.secure;

import dinner.web.eat.IO;
import dinner.web.libs.IOUtils;

import java.io.File;
import java.util.List;

/**
 *
 * @author Bizon
 */
public class UsersIO {

    public static List<User> loadUserList(){
        return IOUtils.read(new File (IO.getRoot() , "users.dba"), User.class);

    }
    public static void saveUserList(List<User> list){
        IOUtils.write(list, new File(IO.getRoot(),"users.dba"));
    }
}
